<?php
namespace app\common\validate;
use think\Validate;

/**
* 订单
*/
class Order extends Validate
{
	
    protected $rule = [
        'user_id' => 'require|number',
        'item_id' => 'require|number',
        'goods_id' => 'require|number',
        'username' => 'require',
        'phone' => 'require',
        'address' => 'require',
        'money' => 'require|number',
        'remark' => 'max:100',
        'order_num' => 'require|number|length:16'
    ];

    protected $message = [
        'goods_id.require' => '请确认商品',
        'item_id.require' => '请确认商品',
        'username.require' => '请输入联系方式',
        'address.require' => '请输入联系方式',
        'phone.require' => '请输入联系方式',
        'money.require' => '请输入金额',
        'remark.max' => '订单备注在100字以内',
    ];


    
}
